Print array after it is right rotated K times